import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:sainbainu/common/values/colors.dart';
import 'package:sainbainu/view/my/controller.dart';

import '../controller.dart';

class CustomTabBar extends GetView<UserDetailController> {
  const CustomTabBar({super.key});

  @override
  Widget build(BuildContext context) {
    return ColoredBox(
      color: AppColors.nav,
      child: TabBar(
        controller: controller.state.tabController,
        tabs: [
          Tab(text: '帖子'.tr),
          Tab(text: '喜欢'.tr),
          Tab(text: '评论'.tr),
        ],
      ),
    );
  }
}
